package com.suirich.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suirich.bean.Enquiry;
import com.suirich.common.Page;
import com.suirich.service.BaseService;
import com.suirich.service.EnquiryService;

@Service
@Transactional
public class EnquiryServiceImpl extends BaseService implements EnquiryService {

	public void create(Enquiry enquiry) {
		this.enquiryDao.create(enquiry);
	}

	public Enquiry read(Long id) {
		return this.enquiryDao.read(id);
	}

	public void delete(Enquiry enquiry) {
		this.enquiryDao.delete(enquiry);
	}

	public List<Enquiry> getEnquiryList(Page page) {
		return this.enquiryDao.getEnquiryList(page);
	}

	public Long getEnquiryListCount() {
		return this.enquiryDao.getEnquiryListCount();
	}


}
